%% IDENTIFICATION ----------------------------------------------------------------
\ProvidesPackage{ii47uji}[2004/05/12, 2005/04/29 - LaTeX class for II18 projects at UJI ]

%% PRELIMINARY DECLARATIONS -------------------------------------------------
\LoadClass[a4paper,twoside,11pt]{scrartcl}

% geometry of page, margins, etc.
\RequirePackage[left=1.5cm,right=2.1cm,top=1.5cm,bottom=2cm]{geometry}

% For accents and other stuff
\RequirePackage[utf8]{inputenc}

% Figures and graphics
\RequirePackage{graphicx}

% urls
\RequirePackage{url}


% Babel
\RequirePackage[english,spanish]{babel}

% enlaces
% Hyperref
\RequirePackage[pdfsubject={II57}, pdfauthor={Victor Centelles Julian - William Viana Soares}, pdftitle={Concurrencia en GNOME: GLib}, urlcolor=blue, colorlinks=true]{hyperref}



% New commands
\newcommand{\@asignaturaCodi}{Ix21}
\newcommand{\@asignatura}{Entornos de Usuario}
\newcommand{\@lloc}{Castellón de la Plana}

\newcommand{\@Email}{Email}
\newcommand{\email}[1]{\gdef\@Email{#1}}

\newcommand{\@NombreEquipo}{<Nombre Equipo>}
\newcommand{\nombreEquipo}[1]{\gdef\@NombreEquipo{#1}}

\newcommand{\@NumeroEquipo}{<Nï¿œmeroEquipo>}
\newcommand{\numeroEquipo}[1]{\gdef\@NumeroEquipo{#1}}

%\newcommand{\@EmailA}{EmailA}
%\newcommand{\@EmailB}{EmailB}
%\newcommand{\@EmailC}{EmailC}
%\newcommand{\@EmailD}{EmailD}
%\newcommand{\emails}[4]{
%\gdef\@EmailA{#1}
%\gdef\@EmailB{#2}
%\gdef\@EmailC{#3}
%\gdef\@EmailD{#4}}
%
%\newcommand{\@NombreA}{NombreA}
%\newcommand{\@NombreB}{NombreB}
%\newcommand{\@NombreC}{NombreC}
%\newcommand{\@NombreD}{NombreD}
%\newcommand{\nombres}[4]{
%\gdef\@NombreA{#1}
%\gdef\@NombreB{#2}
%\gdef\@NombreC{#3}
%\gdef\@NombreD{#4}}

%\newcommand{\@RolA}{RolA}
%\newcommand{\@RolB}{RolB}
%\newcommand{\@RolC}{RolC}
%\newcommand{\roles}[3]{
%\gdef\@RolA{#1}
%\gdef\@RolB{#2}
%\gdef\@RolC{#3}}


\newcommand{\@EmailA}{EmailA}
\newcommand{\@EmailB}{EmailB}
\newcommand{\@EmailC}{EmailC}
\newcommand{\emails}[3]{
\gdef\@EmailA{#1}
\gdef\@EmailB{#2}
\gdef\@EmailC{#3}}

\newcommand{\@NombreA}{NombreA}
\newcommand{\@NombreB}{NombreB}
\newcommand{\@NombreC}{NombreC}
\newcommand{\nombres}[3]{
\gdef\@NombreA{#1}
\gdef\@NombreB{#2}
\gdef\@NombreC{#3}}

\newcommand{\@RolA}{RolA}
\newcommand{\@RolB}{RolB}
\newcommand{\@RolC}{RolC}
\newcommand{\roles}[3]{
\gdef\@RolA{#1}
\gdef\@RolB{#2}
\gdef\@RolC{#3}}


\newcommand{\@Titulacio}{Titulación}
\newcommand{\titulacion}[1]{\gdef\@Titulacio{#1}}

\newenvironment{comment}{}{}

\newcommand{\equipo}{
\begin{center}
\begin{tabular}{lll}
\multicolumn{3}{c}{\textsc{\@NumeroEquipo}} \\[0.25cm]
\@NombreA  & \@RolA & \texttt{\@EmailA} \\
\@NombreB  & \@RolB & \texttt{\@EmailB} \\
\@NombreC  & \@RolC & \texttt{\@EmailC} \\
%\@NombreD  & \@RolD & \texttt{\@EmailD} \\
\end{tabular}
\end{center}
}

% Logo LaTeX2(epsilon)
\ifx\LaTeXe\undefined
    \def\LaTeXe{\LaTeX{}\kern.05em2$_{\textstyle\varepsilon}$}
\fi

% Logo BibTeX
\def\BibTeX{\textsc{Bib}\kern-.08em\TeX}

%% OPTIONS ----------------------------------------------------------------
% Produce error (not warning) for unknown options
\DeclareOption*{\PackageError{ix21uji}{Opciï¿œn '\CurrentOption' desconocida}}

% Pass options to article class
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}

% Not allowing certain options
\DeclareOption{twocolumn}{\typeout{* * * * No se permiten 2 columnas! * * * * * * }}
\DeclareOption{onecolumn}{\OptionNotUsed}

% Process options with which the file was called
\ProcessOptions\relax

% MORE DECLARATIONS -----------------------------------------------------------
\newcommand{\ujiLogo}{\includegraphics[scale=0.2]{./jpg/logouji.jpg}}

\renewcommand{\maketitle}{%
\begin{center}
{\LARGE  \textbf{\sffamily{\@title}}} \\[0.3cm]

%{\Large {\sc \@author}} \\
%\texttt{\@Email} \\[0.3cm]

\equipo

\emph{Programación Concurrente (II57)}, \@Titulacio \\
\emph{Universitat Jaume I}, \@lloc \\[0.2cm]

\@date \\[0.2cm]

\end{center}
}

% Para que salga ''Tabla'' en lugar de ''Cuadro''
\AtBeginDocument{\renewcommand\tablename{Tabla}} 
